from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # admin views
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    # simpleopenid
    # url(r'^simpleopenid/', include('simpleopenid.urls')),
    url(r'^simpleopenid/', include('custom_simpleopenid.urls')),

    # home view
    url(r'^$', 'ema_webservices.views.home', name='home'),
    url(r'^users/(?P<username>.+)/$', 'ema_webservices.views.profile', name='home'),

    url(r'^accounts/logout/$', 'django.contrib.auth.views.logout',
        {'template_name': "logout.html"}, name="logout"),
    url(r'^accounts/login/$', 'simpleopenid.views.openid_login',
        name="login"),

    url(r'^tp_oauth/', include('tp_oauth.urls')),
)
